package com.spring.commonality.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.spring.base.BaseBean;

/** 
* @author  作者 E-mail: liuyang
* @date 创建时间：2016年8月8日 上午10:57:44 
* @version 2.0 
* @parameter  
* @since  
* @return  
*/
public class ActiveCodeVo extends BaseBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8057224685141633658L;
	//邀请码
    private String code;
    //邀请人姓名
    private String usr;
    //医生姓名
    private String doctorName;
    //注册开始时间
    private String registerStart;
    //注册结束时间
    private String registerEnd;
    //活跃开始时间
    private String activeStartDate;
    //活跃结束时间
    private String activeEndDate;
    
    //医生状态
    private Integer doctorStatus;
    
    //医生类型
    private String doctorType;
    //医院名称
    private String hospitalName;
    //医生类型
    private List<Integer> types;
   
    
    
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getUsr() {
		return usr;
	}
	public void setUsr(String usr) {
		this.usr = usr;
	}
	public String getDoctorName() {
		return doctorName;
	}
	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}
	

	public String getRegisterStart() {
		return registerStart;
	}
	public void setRegisterStart(String registerStart) {
		this.registerStart = registerStart;
	}
	public String getRegisterEnd() {
		return registerEnd;
	}
	public void setRegisterEnd(String registerEnd) {
		this.registerEnd = registerEnd;
	}
	public String getDoctorType() {
		return doctorType;
	}
	public void setDoctorType(String doctorType) {
		this.doctorType = doctorType;
	}
	public List<Integer> getTypes() {
		if(StringUtils.isNotEmpty(doctorType)){
			types = new ArrayList<Integer>(); 
			if(doctorType.equals("A")){
				types.add(1);
				types.add(2);
			}else if(doctorType.equals("B")){
				types.add(3);
				types.add(4);
			}else if(doctorType.equals("C")){
				types.add(5);
				types.add(6);
			}else if(doctorType.equals("D")){
				types.add(7);
				types.add(8);
				types.add(9);
				types.add(10);
			}
		}
		return types;
	}
	public String getActiveStartDate() {
		return activeStartDate;
	}
	public void setActiveStartDate(String activeStartDate) {
		this.activeStartDate = activeStartDate;
	}
	public String getActiveEndDate() {
		return activeEndDate;
	}
	public void setActiveEndDate(String activeEndDate) {
		this.activeEndDate = activeEndDate;
	}
	public Integer getDoctorStatus() {
		return doctorStatus;
	}
	public void setDoctorStatus(Integer doctorStatus) {
		this.doctorStatus = doctorStatus;
	}
	public String getHospitalName() {
		return hospitalName;
	}
	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}
	public void setTypes(List<Integer> types) {
		this.types = types;
	}

	
	
	
    

}
